package com.demo.modules.system.domain.sys.user;

import com.demo.common.core.domain.SysDeptBo;
import com.demo.common.core.domain.SysRoleBo;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @author MyPC
 */
@Data
@ApiModel("用户信息响应实体")
public class SysUserVo {
    @ApiModelProperty(value = "用户id")
    private String userId;
    @ApiModelProperty(value = "用户名称")
    private String uk;
    @ApiModelProperty(value = "空间url")
    private String spaceUrl;
    @ApiModelProperty(value = "手机号")
    private String mobile;
    @ApiModelProperty(value = "邮箱")
    private String mailbox;
    @ApiModelProperty(value = "用户昵称")
    private String nickName;
    @ApiModelProperty(value = "头像")
    private String avatar;
    @ApiModelProperty(value = "性别")
    private String sex;
    @ApiModelProperty(value = "注册类型")
    private String registerType;
    @ApiModelProperty(value = "住址")
    private String addr;
    @ApiModelProperty(value = "用户状态")
    private String status;
    @ApiModelProperty(value = "备注")
    private String remark;
    @ApiModelProperty(value = "是否超级管理员")
    private boolean admin;
    /**
     * 部门id
     */
    private Long deptId;

    /**
     * 最后登录的ip
     */
    private String loginIp;

    /**
     * 最后登录时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private Date loginDate;

    private String createBy;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private Date createTime;
}
